import service from "../request"

export function courseselect(){
    return service({
        url:'/student/course/select/page/1',
        method:'get'
    })
}
// 选课
export function studentselect(id){
    return service({
        url:'/student/course/select/'+id,
        method:'post'
    })
}

// 学生课程
export function studentcourse(){
    return service({
        url:'/student/course/list',
        method:'get'
    })
}
// 退选
export function studentselecttx(id){
    return service({
        url:'/student/course/'+id,
        method:'delete'
    })
}
// 课表查询
export function studenttimetable(id){
    return service({
        url:'/student/timetable',
        method:'get'
    })
}
// 成绩查询
export function studentcourse1(){
    return service({
        url:'/student/course/list',
        method:'get'
    })
}
// 个人中心
export function studentinfo(){
    return service({
        url:'/student/info',
        method:'get'
    })
}
// 更新个人信息
export function studentupdateinfo(data){
    return service({
        url:'/student/info',
        method:'put',
        data
    })
}